package com.example.tys.daggermvp.mvp.presenter;


import com.example.tys.daggermvp.dagger2.annotation.ActivityScoped;
import com.example.tys.daggermvp.mvp.contract.PlusOneFragmentContract;

/**
 * @author tys
 * @date 2018/4/14
 */
@ActivityScoped
public class PlusOneFragmentPresenter extends PlusOneFragmentContract.Presenter {

    @Override
    public void fragment() {
        PlusOneFragmentContract.View mView;
        if (mViewWeakRef != null && (mView = mViewWeakRef.get()) != null) {
            if (mData != null) {
                mView.fragment(mData.fragment());
            }
        }
    }
}
